﻿using System;
using System.Collections.Generic;
using System.Linq;
using Pharmacy.Ultilities;

namespace Pharmacy.Business.Common
{
    public static class BOCommon
    {
        /// <summary>
        /// Get string of GeneratorObjectType enum
        /// </summary>
        /// <param name="generatorFullName"></param>
        /// <returns></returns>
        public static string GetGeneratorTypeName(Pharmacy.Ultilities.Enums.GeneratorObjectType generatorFullName)
        {
            switch (generatorFullName)
            {
                case Enums.GeneratorObjectType.ManufacturerGenerator:
                    return Constant.GENERATOR_MANUFACTURER;
                case Enums.GeneratorObjectType.VendorGenerator:
                    return Constant.GENERATOR_VENDOR;
                case Enums.GeneratorObjectType.CustomerGenerator:
                    return Constant.GENERATOR_CUSTOMER;
                case Enums.GeneratorObjectType.EmployeeGenerator:
                    return Constant.GENERATOR_EMPLOYEE;
                case Enums.GeneratorObjectType.MasterItemGenerator:
                    return Constant.GENERATOR_MASTERITEM;
                case Enums.GeneratorObjectType.PhieuBaoGiaGenerator:
                    return Constant.GENERATOR_PHIEUBAOGIA;
                case Enums.GeneratorObjectType.MasterLocationGenerator:
                    return Constant.GENERATOR_MASTERLOCATION;
                case Enums.GeneratorObjectType.PhieuDatHangGenerator:
                    return Constant.GENERATOR_PHIEUDATHANG;
                default: return string.Empty;                   
            }
        }        
    }
}
